﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using Timesheet.Domain;

namespace Timesheet.Service
{
    public interface ITimeSheetsService
    {
        IList<TimeSheets> GetTimeSheets();
        IList<TimeSheets> GetTimeSheets(string role,long prjID,long userID);

        bool CopyFrom(long tmsh,TimeSheets newTmsh);

        bool CheckExist(TimeSheets entity);
        TimeSheets GetByID(long id);
        bool Add(TimeSheets entity);
        bool Update(TimeSheets entity);
        bool SimpleUpdate(TimeSheets entity);
        bool Delete(TimeSheets entity);

        TimeSheets GetLastedTimesheet(long prjID, long teamId);

        TimeSheets GetLastedTimesheet(long prjID);

        TimeSheets GetLastedTimesheet(long prjID, string week);
    }
}
